import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import VueMarkdownEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';

import VMdPreviewHtml from '@kangc/v-md-editor/lib/preview-html';
import '@kangc/v-md-editor/lib/style/preview-html.css';

import Prism from 'prismjs';
import hljs from 'highlight.js';

VueMarkdownEditor.use(vuepressTheme, {
  Prism,
  Hljs: hljs,
});

const app = createApp(App);
app.use(ElementPlus);
app.use(VueMarkdownEditor);
app.use(VMdPreviewHtml);
app.mount('#app');
// createApp(App).mount('#app')
